﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DadayunApi.Model
{

    public class WorkFlowTemplateInfo
    {
        public string Id { get; set; }
        public string Name { get; set; }
        public EWorkFlowStatus Status { get; set; }
        public EWorkFlowType WorkFlowType { get; set; }
        public bool HasInstance { get; set; }
        public string CreatorName { get; set; }
        public DateTime CreateTime { get; set; }
    }
    public enum EWorkFlowStatus
    {
        /// <summary>
        /// 未提交
        /// </summary>
        UnderSummited=1,
        /// <summary>
        /// 测试
        /// </summary>
        SummittedForTest=2,
        /// <summary>
        /// 已提交
        /// </summary>
        Summitted=3
    }
    /// <summary>
    /// 工作流模板类型
    /// </summary>
    public enum EWorkFlowType
    {
        /// <summary>
        /// 普通工作流
        /// </summary>
        NormalWorkFlow=1,
        /// <summary>
        /// 自由工作流
        /// </summary>
        FreeWorkFlow=2
    }
}
